#include "Button.hpp"

const char *Button::getText()
{
    return text;
}

void Button::setText(const char *text)
{
    if(this->text!=nullptr){
        delete this->text;
    }
    this->text=new char[strlen(text)+1];
    strcpy(this->text,text);
}
